﻿namespace CNav.Model
{
    public class SessionUser
    {
        public int ID { get; set; }
        public int BusinessID { get; set; }
        public bool IsBusinessAdmin { get; set; }
        public string UserPosition { get; set; }
        public string PhoneNumber { get; set; }
        public string FaxNumber { get; set; }
        public string Email { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }

        public bool IsComplete()
        {
            if (IsBusinessAdmin && !string.IsNullOrEmpty(FirstName))
                return true;

            return BusinessID != 0 && !string.IsNullOrEmpty(Title) && !string.IsNullOrEmpty(FirstName) &&
                  !string.IsNullOrEmpty(LastName);
        }
    }
}